= header_tag('商品详细')

.row
  .form-horizontal
    .form-group
      = label_tag :name, '姓名', class: 'control-label col-md-2'
      %p.form-control-static
        = @product.name
    .form-group
      = label_tag :price, '价格', class: 'control-label col-md-2'
      %p.form-control-static
        = @product.price
    .form-group
      = label_tag :avatar, '照片', class: 'control-label col-md-2'
      %p.form-control-static
        = image_tag("#{@product.try(:image_url) || 'avatar.png' }", id: 'doctor_image', style: 'width: 400px; height: 400px;display: block;cursor: pointer;')
    .form-group
      = label_tag :memo, '备注', class: 'control-label col-md-2'
      %p.form-control-static
        = raw(@product.memo)

= link_to '编辑', edit_cpanel_product_path(@product), class: "btn btn-outline btn-primary"
\|
= link_to '商品列表', cpanel_products_path, class: "btn btn-outline btn-primary"
